#include "stdafx.h"
#include <math.h>
#include <Windows.h>

static const int N = 10;
static const char *SW[] = {" ", "*", " \n", "*\n"};

int _tmain(int argc, _TCHAR* argv[])
{
	for ( int i=0; i < (N+1)*(N+1); i++ )
	{
		int x = i%(N+1), y=i/(N+1);
		int formula = ( (x+N+1 )/((1-y*2/(N+1))*(N/2 - y) + (y*2/(N+1))*(y - N/2) + N+1) )
			*( ( (1-y*2/(N+1))*(N/2 + y) + (y*2/(N+1))*((N+N+N)/2 - y-(N-N/2*2)) + N+1 )/(x+N+1) )
			+(x/N)*(2);
		printf("%s", SW[formula]);
	}

	return 0;
}

